package com.yesep.learn.design.common.pojo;

/**
 * 猫
 */
public class Cat extends RunningAnimal {
    public Cat() {
    }

    public Cat(String name) {
        this();
        setName(name);
    }

    @Override
    public void speak() {
        System.out.printf("The %s %s speak Meow. \n", this.getClass().getSimpleName(), getName());
    }
}
